<form onsubmit="return false;" id="retailerCommodityTypeForm" action="#(action)" method="post" style="width:500px">
    <input type="hidden" name="commodityType.pid"  value="#(pid??)" />
    #if(retailerCommodityType.id??)
    <input type="hidden" name="commodityType.id" value="#(retailerCommodityType.id)" />
    #end
    <div class="form-group">
        <label>请输入分类名称：</label>
        <input type="text" autocomplete="off" autofocus="autofocus"  class="form-control" data-rule="required;len<=20" data-tips="请输入名称" maxlength="20" name="commodityType.name" value="#(retailerCommodityType.name??)">
    </div>
    #if(pid?? && pid>0)
    <div class="form-group">
        <label>上级分类：</label>
        <input type="text" autocomplete="off"  readonly="readonly"  class="form-control"  maxlength="20"   value="#(MyUtil.get_commodity_full_name(pid??))">
    </div>
    #end
    <div class="form-group row"
         data-radio
         data-rule="radio"
         data-value="#(retailerCommodityType.enabled??)"
         data-name="commodityType.enabled"
         data-default="true">
        <label class="col-auto col-form-label" >是否启用：</label>
        <div class="col"  style="padding-top: 1px;">
            <div class="radio radio-primary  radio-inline">
                <input  id="renabletrue" type="radio" name="commodityType.enabled"   value="true"/>
                <label for="renabletrue">启用</label>
            </div>

            <div class="radio radio-primary  radio-inline">
                <input  id="renablefalse" type="radio" name="commodityType.enabled"   value="false"/>
                <label for="renablefalse">禁用</label>
            </div>
        </div>
    </div>
    <div class="form-group text-right">
        <button class="btn btn-primary"  type="button" onclick="submitRetailerCommodityTypeForm()"><i class="fa fa-check mr-1"></i>确定</button>
    </div>
</form>